package com.pzhu.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.pzhu.model.help.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 地址
 * @TableName hs_address
 */
@Data
@TableName(value ="hs_address")
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("地址实体")
@EqualsAndHashCode(callSuper = true)
public class Address extends BaseEntity implements Serializable {

    /**
     * 用户ID
     */
    @ApiModelProperty("用户ID")
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 姓名
     */
    @ApiModelProperty("姓名")
    @TableField(value = "username")
    private String username;

    /**
     * 电话
     */
    @ApiModelProperty("电话")
    @TableField(value = "phone")
    private String phone;

    /**
     * 地址信息
     */
    @ApiModelProperty("地址信息")
    @TableField(value = "address")
    private String address;

    /**
     * 门牌号
     */
    @ApiModelProperty("门牌号")
    @TableField(value = "house_number")
    private String houseNumber;

    /**
     * 家庭面积
     */
    @ApiModelProperty("家庭面积")
    @TableField(value = "area")
    private Integer area;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}